<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="common_css :: commonHeader('案例管理')"></head>
<body>
<!--搜索框-->
<form method="post" id="tabfrom">
    <div style="padding:2px" class="easyui-panel" title="数据查询">
        <table class="form-table">
            <td width="10%">案例名称：</td>
            <td align="left">
                <input id="selName" style="width:150px"/>
                <a class="easyui-linkbutton" iconCls='icon-search' onclick="doSearch();">查询</a>
            </td>
        </table>
    </div>
    <br>
</form>
<div id="toolbar">
    <shiro:hasPermission name="regression:usecase:add">
        <a id="addValue" href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add"
           onclick="addValue()">添加</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="regression:usecase:edit">
        <a id="editValue" href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit"
           onclick="editValue()">修改</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="regression:usecase:del">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel"
           onclick="delUsecase()">删除</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="regression:usecase:execute">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-pencil-go"
           onclick="executeUsecase()">立即执行</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="regression:usecase:upload">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-print"
           onclick="uploadUsecase()">导入标准数据</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="regression:usecase:view">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-jobRecord-red"
           onclick="queryCheckData()">查看差异数据</a>
    </shiro:hasPermission>
</div>

<div id="dg"></div>


<div id="dlg" class="easyui-dialog" style="width:850px;height:510px"
     closed="true" modal="true" maximizable="true" resizable="true">
    <form id="myform" method="post">
        <div style="padding:20px">
            <table cellpadding="2px" cellspacing="0" class="form-table">
                <tr>
                    <td>案例名称：</td>
                    <td>
                        <input class="easyui-validatebox" name="id" type="hidden"/>
                        <input class="easyui-validatebox" name="name" data-options="required:true"
                               missingMessage="请输入中文案例名称" validType="chinese"/></td>
                </tr>
                <tr>
                    <td>请求方式：</td>
                    <td>
                        <input id="requested" name="requested" editable="false"
                               class="easyui-combobox" data-options="required:true,prompt:'==请选择==',panelHeight:'auto', valueField: 'label', textField: 'value',
                                    data: [{ label: 'post',  value: 'post' },{ label: 'get', value: 'get'}]"
                               missingMessage="请选择请求方式" validType="comboxValidate['requested','请选择请求方式']"/>
                    </td>
                </tr>
                <tr>
                    <td>业务日期：</td>
                    <td>
                        <input style="width:180px" class="easyui-datebox" id="fywdate" name="fywdate"
                               data-options="required:true,showSeconds:false,panelHeight:'auto'">
                    </td>
                </tr>
                <tr>
                    <td>请求地址：</td>
                    <td>
                        <input class="easyui-validatebox" name="url" data-options="required:true" style="width:350px"
                               missingMessage="请输入正确的url地址"/></td>
                </tr>
                <tr>
                    <td>套账号：</td>
                    <td>
                        <input id="fsetcode" name="fsetcode" class="easyui-combobox" style="width:350px"
                               data-options="required:true,valueField:'value',textField:'showmsg',prompt:'==请选择==',panelHeight:'auto'"
                               missingMessage="请选择套账号" validType="comboxValidate['fsetcode','请选择套账号']"/>
                    </td>
                </tr>
                <tr>
                    <td>处理类型：</td>
                    <td>
                        <input id="ftype" name="ftype" class="easyui-combobox" style="width:350px"
                               data-options="required:true,valueField:'value',textField:'showmsg',prompt:'==请选择==',panelHeight:'auto'"
                               missingMessage="请维护处理类型" validType="comboxValidate['ftype','请维护处理类型']"/>
                    </td>
                </tr>
                <tr>
                    <td>请求公用参数：</td>
                    <td colspan="3">
                        <input class="easyui-textbox" name="commonparameters"
                               data-options="multiline:true" style="height:100px;width:450px"/>
                    </td>
                </tr>
                <tr>
                    <td>请求套账参数：</td>
                    <td colspan="3">
                        <input class="easyui-textbox" name="fsetcodeparameters"
                               data-options="multiline:true" style="height:100px;width:450px"/>
                    </td>
                </tr>
                <tr>
                    <td>测试结果：</td>
                    <td colspan="3">
                        <input class="easyui-textbox" name="result"
                               data-options="multiline:true" style="height:100px;width:450px"/>
                    </td>

                </tr>
            </table>
        </div>
    </form>
</div>


<div id="dlg2" class="easyui-dialog" style="width:550px;height:310px"
     closed="true" modal="true" maximizable="true" resizable="true">
    <form id="myform2" method="post">
        <div style="padding:20px">
            <table cellpadding="2px" cellspacing="0" class="form-table">
                <tr>
                    <td>业务日期：</td>
                    <td>
                        <input style="width:180px" class="easyui-datebox" id="fywdate2" name="fywdate"
                               data-options="required:true,showSeconds:false,panelHeight:'auto'">
                    </td>
                </tr>
                <tr>
                    <td>套账号：</td>
                    <td>
                        <input id="fsetcode2" name="fsetcode" class="easyui-combobox" style="width:350px"
                               data-options="required:true,valueField:'value',textField:'showmsg',prompt:'==请选择==',panelHeight:'auto'"
                               missingMessage="请选择套账号" validType="comboxValidate['fsetcode2','请选择套账号']"/>
                    </td>
                </tr>
                <tr>
                    <td>数据库表：</td>
                    <td>
                        <input id="tabletype" name="ftype" class="easyui-combobox" style="width:350px"
                               data-options="required:true,valueField:'value',textField:'showmsg',prompt:'==请选择==',panelHeight:'auto'"
                               missingMessage="请维护处理类型" validType="comboxValidate['tabletype','请维护处理类型']"/>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>

<div id="dlg3" class="easyui-dialog" style="width:750px;height:510px"
     closed="true" modal="true" maximizable="true" resizable="true">
    <div id="dgdate"></div>
</div>


<div th:include="common_js :: commJS"></div>
<script type="text/javascript"
        th:src="@{/js/regression/usecase.js}"></script>
</body>
</html>
